groups if there are duplicate entries
* (bug 21814) Message shown when rolling back an edit with a deleted username
now shows '(username deleted)' instead of broken user tool links
+* (bug 21536) Fixed JavaScript error on Special:Search caused by an incorrect ID
== API changes in 1.16 ==
}
protected function searchFocus() {
+ $id = $this->searchAdvanced ? 'powerSearchText' : 'searchText';
return Html::inlineScript(
"hookEvent(\"load\", function() {" .
- "document.getElementById('searchText').focus();" .
+ "document.getElementById('$id').focus();" .
"});" );
}
$out .= Html::hidden( "redirs", (int)$this->searchRedirects ) . "\n";
// Term box
$out .= Html::input( 'search', $term, 'search', array(
- 'id' => 'searchText',
+ 'id' => $this->searchAdvanced ? 'powerSearchText' : 'searchText',
'size' => '50',
'autofocus'
) ) . "\n";